package org.bopis.action;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.bopis.domain.Bopi;
import org.bopis.form.BuscarContenidoForm;
import org.bopis.form.BuscarForm;
import org.bopis.services.impl.BopisServicioImpl;
import org.bopis.services.interfaz.BopisServicio;
import org.bopis.utilidades.Utilidades;


public class BuscarContenidoBopisAction extends CustomBaseAction {
	
	private static Logger log = Logger.getLogger(BuscarContenidoBopisAction.class);
	
    public ActionForward execute(ActionMapping map, ActionForm form, HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {
    	
    	log.debug("Incicio");
	    	   	
    	BuscarContenidoForm f = (BuscarContenidoForm) form;
    	req.setAttribute("texto", f.getTexto());
    	req.setAttribute("tiempo", f.getTiempo());
    	req.setAttribute("tomo", f.getTomo());
    	
    	
    	return map.findForward("Success");
    }
}
